from fastapi import FastAPI
from langserve import add_routes
from llm_rag.chains import build_rag_chain
import uvicorn


app = FastAPI()
chain = build_rag_chain()
add_routes(app, chain, path='/api')

if __name__ == "__main__":
    uvicorn.run(app)